﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Gui/masterPage.Master" AutoEventWireup="true" CodeBehind="Account.aspx.cs" Inherits="OnlineStore.Gui.Account" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
    <h1>Thông tin tài khoản</h1>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentCenter" runat="server">
    <p> <b>Tài khoản <%=((OnlineStore.Dal.tbCustomer) Session["user"]).Username %></b></p>
    <table>
    <tbody>
        <tr>
            <td><b>Họ và tên : </b></td>
            <td><%=((OnlineStore.Dal.tbCustomer) Session["user"]).Cus_Name %></td>
        </tr>
        <tr>
            <td><b> Địa chỉ : </b></td>
            <td><%=((OnlineStore.Dal.tbCustomer) Session["user"]).Address %></td>
        </tr>
        <tr>
            <td><b>Số Điện thoại : </b></td>
            <td><%=((OnlineStore.Dal.tbCustomer) Session["user"]).Phone %></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
        </tr>
    </tbody>
    </table>
    <ul>
        <li> <asp:HyperLink ID="HL_ChangInfo" NavigateUrl="/Gui/ChangeUser.aspx?id=0" runat="server">Sửa đổi Thông tin</asp:HyperLink>    </li>
        <li>  <asp:HyperLink ID="HL_ChangePass" NavigateUrl="/Gui/ChangeUser.aspx?id=1" runat="server">Thay đổi mật khẩu</asp:HyperLink>  </li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentTop" runat="server">
    <h1>Các sản phẩm đã đặt hàng</h1>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="listHistoryCart" runat="server" AutoGenerateColumns="False" 
        style="margin-right: 0px" CssClass="cart" AllowPaging="True" 
        onpageindexchanging="listHistoryCart_PageIndexChanging" PageSize="3">
        <Columns>
            <asp:BoundField DataField="Order_ID" HeaderText="Hóa đơn" 
                SortExpression="Order_ID" />
            <asp:ImageField DataImageUrlField="Product_Id" 
                DataImageUrlFormatString="/Bll/ImageHttpHandler.ashx?id={0}" HeaderText="Hình">
                <ControlStyle Width="75px" />
            </asp:ImageField>
            <asp:HyperLinkField DataNavigateUrlFields="Product_Id" 
                DataNavigateUrlFormatString="/Gui/ProductDetail.aspx?id={0}" 
                DataTextField="Product_Name" HeaderText="Tên" />
            <asp:BoundField DataField="NumBerOrder" HeaderText="Số lượng" 
                SortExpression="NumBerOrder" />
            <asp:BoundField DataField="Status" HeaderText="Trạng thái" 
                SortExpression="Status" />
            <asp:BoundField DataField="Price" HeaderText="Đơn giá" SortExpression="Price" />
            <asp:BoundField DataField="Total" HeaderText="Tiền" SortExpression="Total" />
        </Columns>

    </asp:GridView>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentButtom" runat="server">
    <h1>Thông báo</h1>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Contentlist" runat="server">
</asp:Content>
<asp:Content ID="content7" ContentPlaceHolderID="ContentLogin" runat="server">
    <asp:HyperLink ID="HL_tab_login"  NavigateUrl="/gui/Login.aspx" runat="server" ForeColor="Red">(Đăng nhập) </asp:HyperLink> |
    <asp:HyperLink ID="HL_tab_Logout"  Visible="false" runat="server" NavigateUrl="/gui/Login.aspx?logout=true">Đăng Xuất | </asp:HyperLink>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="ContentCartRight" runat="server">
        <asp:GridView ID="ListCartRight" runat="server" AutoGenerateColumns="False"
           GridLines="None">
            <Columns>
                <asp:BoundField DataField="NumberOrder" SortExpression="NumberOrder" 
                    DataFormatString="{0} x " >
                
                <ControlStyle Width="10px" />
                </asp:BoundField>
                
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataTextField="Product_Name" 
                    DataNavigateUrlFormatString="/gui/ProductDetail.aspx?id={0}" />
            </Columns>
        </asp:GridView>
    <br>
    <table cellpadding="0" cellspacing="0" align="right" style="display:inline-block;">
     <tbody>
        <tr>
            <td align="right"><span class="cart_module_total"><b>Tiền hàng:</b></span></td>
            <td align="right">
                <asp:Label ID="lb_Sum_product" runat="server" CssClass="cart_module_total" >0 VNĐ</asp:Label>
             </td>
        </tr>
        <tr>
            <td align="right"><span class="cart_module_total"><b>Tổng cộng:</b></span></td>
            <td align="right"><span class="cart_module_total">
                <asp:Label ID="lb_Sum" runat="server" CssClass="cart_module_total">0 VNĐ</asp:Label></span></td>
        </tr>
     </tbody></table>
</asp:Content>